#ifndef _INDEX_PRIVATE_H_
#define _INDEX_PRIVATE_H_

#include "list.h"
#include "index.h"
#include <stdint.h>

typedef struct index_attr_node_t {
    avl_node   avl;
    list       list;
    uint8_t    data[0];
} index_attr_node;

typedef struct index_attr_list_node_t {
    list_node  list_node;
    void      *item;
} index_attr_list_node;

struct index_attr_t {
    int                   offset; 
    int                   size;   
    avl_tree             *tree;
    index_attr_node      *attr_node_temp;
    index_attr_node      *attr_node_pool;
    index_attr_list_node *attr_list_node_pool;
    int                   attr_node_count;
    int                   attr_list_node_count;

};

#endif
